import Message from './message';
import FontIcon from './fontIcon/FontIcon.vue';
import SvgIcon from './svgIcon/SvgIcon.vue';
import Dialog from './dialog/Dialog.vue';
import Drawer from './drawer/Drawer.vue';

const components = {
  FontIcon,
  SvgIcon,
  Dialog,
  Drawer
};

// 全局注册自定义组件
const install = function (app) {
  for (let key in components) {
    app.component(components[key].name, components[key]);
  }
};

export default install;
export { Message };
